import { Ion, Terrain, Viewer,Cesium } from 'cesium'
 
Ion.defaultAccessToken = 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJqdGkiOiJmNDM2YTU3My1jOGU5LTRlOGEtOGY0Ny1kMWM5Y2RiMTFiZGQiLCJpZCI6MjE5Nzg2LCJpYXQiOjE3MTc0Njk2NDN9.idC44iWtySIFqa9S_myO9_ST6kFvAS3HQbvv-Zq0Cj4'
export const useCesiumView = (container, options = {}) => {
  return new Viewer(container, {
    terrainProvider: Cesium.createWorldTerrain(),
    ...options
  })

  
}